import type { App } from 'vue'
import { createPinia } from 'pinia'

// 创建一个 pinia（根存储）并将其传递给应用程序
export const store = createPinia()
export function setupStore(app: App) {
  app.use(store)
}
